package com.loveyukari.dao;

import java.util.List;

import com.loveyukari.model.VoteGroup;
import com.loveyukari.model.VoteItem;

/**
*
*yangshaohua
*2017年5月20日下午5:41:20
**/
public interface VoteDao {

	Integer insertVoteGroup(String name);
	
	VoteGroup selectLastVoteGroup();
	
	List<VoteGroup> selectVoteGroupAll();
	
	List<VoteItem> selectVoteItemByGroup(int groupId);
	
	VoteItem selectVoteItemById(int id);
	
	void insertVoteItem(VoteItem voteItem);
	
	void updateVoteItem(VoteItem voteItem);
	
	void updateVoteGroup(VoteGroup voteGroup);
	
	VoteGroup selectVoteGroupById(int id);
	
}
